package com.mrd.gtimp.base.entity;

import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * <p> application name: gtimp <p> copyright: Copyright@2012 明睿达科技有限公司
 */

/**
 * @author qiul
 */
@Entity
@Table(name = "T_SYS_ANSWER")
public class Answer implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @Column(name = "AID")
    @GenericGenerator(name = "aid", strategy = "uuid")
    @GeneratedValue(generator = "aid")
    private String id;

    @Column(name = "QID")
    private String qid;

    @Column(name = "CONTENTS")
    private String contents;

    @Column(name = "ATIME")
    @Temporal(TemporalType.TIMESTAMP)
    private Date atime;

    @Column(name = "USERID")
    private String uid;

    @Column(name = "ISCHECK")
    private String ischeck;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getQid() {
        return qid;
    }

    public void setQid(String qid) {
        this.qid = qid;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }

    public Date getAtime() {
        return atime;
    }

    public void setAtime(Date atime) {
        this.atime = atime;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getIscheck() {
        return ischeck;
    }

    public void setIscheck(String ischeck) {
        this.ischeck = ischeck;
    }

    public Answer() {
        super();
    }

}
